package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: 王秀田
 * @date: 2024/11/7 15:15
 * @description: 社交内容评论/回复表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_social_critique")
@ApiModel(value="GeConSocialCritique对象", description="社交内容评论/回复表")
public class GeConSocialCritique implements Serializable {

    private static final long serialVersionUID = -4690265876458614120L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评论者唯一标识")
    private String openId;

    @ApiModelProperty(value = "社交内容ID")
    private String contentId;

    @ApiModelProperty(value = "评论/回复内容")
    private String content;

    @ApiModelProperty(value = "类型（'1'：评论，'2'：回复）")
    private String type;

    @ApiModelProperty(value = "评论/回复数量")
    private Integer num;

    @ApiModelProperty(value = "状态('0':待审核，'1':已通过,'2':未通过)")
    private String status;

    @ApiModelProperty(value = "父ID")
    private Long replyId;

    @ApiModelProperty(value = "发布者ip")
    private String ip;

    @ApiModelProperty(value = "ip归属地")
    private String ipAddress;

    @ApiModelProperty(value = "评论/回复时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime reviewTime;

    @ApiModelProperty(value = "评论标签（'1':普通，'2':精选）")
    private String labelId;
}
